﻿angular.module("user.services", [])
.factory('getProfileUser', function($http, $q, renderProcess, BASE_URL) 
{
	return {
		getData: function(username) {
			var username = $http.post(BASE_URL + 'index.php/user/getAllUser');
			
			$q.all(username).then(function(data) {
				
				deferred.resolve({
					username: data
				});
			});
			return deferred.promise;
		}

	};
});
